// import Home from "./pages/home/Home";
// import Login from "./pages/login/Login";
// import Profile from "./pages/profile/Profile";
// import Register from "./pages/register/Register";

import { routes } from "./router";

import { Route, Routes, Navigate, useRoutes } from "react-router-dom";
function App() {
  return (
    // <Routes>
    //   <Route path="/" element={<Home />}></Route>
    //   <Route path="/login" element={<Login />}></Route>
    //   <Route path="/profile" element={<Profile />}></Route>
    //   <Route path="/register" element={<Register />}></Route>
    //   <Route path="*" element={<Navigate to="/" />} />
    // </Routes>
    <div className="App">
      {useRoutes(routes)}
    </div>
  );
}

export default App;
